﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using GMS.BIZ;

namespace Web.Paper
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (((Account)Session["Account"]).RoleCurrent.CompareTo('s') == 0)
            {
                Response.Redirect("../Paper/StuPaper.aspx");
            }
            else if (((Account)Session["Account"]).RoleCurrent.CompareTo('t') == 0)
            {
                Response.Redirect("../Paper/TeaPaper.aspx");
            }
            else if (((Account)Session["Account"]).RoleCurrent.CompareTo('c') == 0)
            {
                Response.Redirect("../Paper/ClassTeaPaper.aspx");
            }
            else { ;}
        }
    }
}
